<?php if ($pager->haveToPaginate()): ?>
   <?php echo link_to('上一页', "@{$route}?page={$pager->getPreviousPage()}&catid={$catid}") ?>
       <?php foreach ($pager->getLinks() as $page): ?>
      <?php if ($pager->getPage() == $page): ?>
        [ <font color="#FD7100"><?php echo $page ?></font> ]
      <?php else: ?>
       [<?php echo link_to($page, "@{$route}?page={$page}&catid={$catid}") ?>]
      <?php endif ?>
    <?php endforeach ?>
  <?php echo link_to('下一页', "@{$route}?page={$pager->getNextPage()}&catid={$catid}") ?>
<?php endif ?>
